<template>
    <div>
        <competition-desc v-for="item in competitionList" :key="item.id" :item="item"></competition-desc>
    </div>
</template>

<script>
import { mapActions } from 'vuex';
import competitionDesc from '@/components/user/competitionDesc';
export default {
    components:{competitionDesc},
    data() {
        return {
            competitionList:[],
        }
    },
    methods: {
        ...mapActions(['XgetUserCompetitonList'])
    },
    mounted() {
        this.XgetUserCompetitonList().then(res => {
            this.competitionList = res.data;
        })
    },
}
</script>

<style lang="scss" scoped>

</style>